package com.paddyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.paddyi.model.Resource;
import com.paddyi.model.vo.ResourceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 资源 (Resource)
 *
 * @author paddy
 * @since 2019-04-26 04:34:10
 */
@Component
public interface ResourceMapper extends BaseMapper<Resource> {

   List<Resource> selectResourceMenusTreeByLoginName(@Param("roleIds") List<Long> roleIds);

   List<Resource> selectResourceButtonByLoginName(@Param("roleIds") List<Long> roleIds);

   List<Resource> selectResourceByRoleId(@Param("roleId") Long roleIds);

}